//
//  Prepay.m
//  预购清单
//
//  Created by liujianlong on 2022/10/17.
//

#import "Prepay.h"

@implementation Prepay
+ (NSArray *)bg_unionPrimaryKeys
{
    return @[@"stamp",@"account"];
}
-(NSString *)year{
    if (!_year) {
        _year = [NSString stringWithFormat:@"%d",(int)[NSDate dateOfStamp:self.stamp].year];
    }
    return _year;
}
-(NSString *)month{
    if (!_month) {
        _month = [NSString stringWithFormat:@"%d",(int)[NSDate dateOfStamp:self.stamp].month];
    }
    return _month;
}
-(NSString *)day{
    if (!_day) {
        _day = [NSString stringWithFormat:@"%d",(int)[NSDate dateOfStamp:self.stamp].day];
    }
    return _day;
}
@end
